#include "VBF_QT.h"
#ifdef QT4_FOUND
    #include <QFileDialog>
    #include <QApplication>
#else
    #include <QtWidgets/QFileDialog>
    #include <QtWidgets/QApplication>
#endif

std::string VBF_GetOpenFileName(std::string strTitle,std::string strPath,std::string strFilter)
{
    if(NULL==qApp) return "";
    QString qFileName = QFileDialog::getOpenFileName(NULL,strTitle.c_str(), strPath.c_str(), strFilter.c_str());

    return qFileName.toStdString();

}
